package com.yuyou.train.user.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import com.yuyou.train.service.api.user.entity.UserPoints;
import com.yuyou.train.service.api.user.service.UserPointsAPI;
import com.yuyou.train.user.service.IUserPointsService;





@RestController
public class UserPointsAPIImpl implements UserPointsAPI{

	
	@Autowired
	private IUserPointsService userPointsService;
	
	@Override
	public int addPoints(UserPoints userPoints) {	
		return userPointsService.insert(userPoints);
	}


	

	
}
